package com.tengju.settlement.domain.model.depository;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 绑定卡按钮展示
 *
 * @author 大木
 * @date 2021/12/16
 */
@Getter
@AllArgsConstructor
public enum BindCardButtonView {

    ACK_VALIDATION(1,"确认验证"),
    APPLY_AGAIN(2,"重新申请"),
    ;

    Integer val;
    String desc;


    public static BindCardButtonView fromVal(Integer val) {
        for (BindCardButtonView status : values()) {
            if (status.val.equals(val)) {
                return status;
            }
        }
        return null;
    }

}
